package com.dgut.hisystem.service.impl;


import com.dgut.hisystem.entity.Relationship;
import com.dgut.hisystem.mapper.RelationshipMapper;
import com.dgut.hisystem.service.RelationshipService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RelationshipServiceImpl implements RelationshipService {
    @Resource
    private RelationshipMapper relationshipMapper;

    @Override
    public Relationship getRelationshipById(int id) {
        return relationshipMapper.getRelationshipById(id);
    }

    @Override
    public void insert(Relationship relationship) {
        relationshipMapper.insert(relationship);
    }

    @Override
    public void update(Relationship relationship) {
        relationshipMapper.update(relationship);
    }

    @Override
    public void delete(int id) {
        relationshipMapper.delete(id);
    }
}
